The Advanced Calendar Component > FAdvancedCalendar (object)

 

FAdvancedCalendar (object)

The Advanced Calendar component extends the Calendar component available in the Flash UI Component Set 2. It adds a number of new features, including the ability to associate data with individual dates, format individual date cells, as well adding support for DataProvider classes for ease of use with Flash Remoting.

This component is useful both as a date picker UI component, but also as a full fledged calendar element which can be used to easily display information to users concerning data associated with dates. 

Method summary for the FAdvancedCalendar object.

Note: The methods below are in addition to the methods provided by the Calendar component included with Flash UI Components Set 2.

Method name

Description

FAdvancedCalendar.getCellData(dateObj)

Returns the data object associated with the given date.

FAdvancedCalendar.getCellStyle(dateObj)

Returns an object containing style properties associated with the given date.

FAdvancedCalendar.getDataProvider()

Returns the DataProvider classed used by the calendar to associate data with individual dates..

FAdvancedCalendar.setCellData(data,dateObj)

Associates data to a calendar day.

FAdvancedCalendar.setCellStyle(style [,dateObj])

Sets a custom style to a calendar day. If dateObj is not passed in it sets the default style for all calendar days that contain data.

FAdvancedCalendar.setDataProvider(dp)

Sets the DataProvider that contains information to be associated with dates.